T = int(input())
queue = []
for i in range(T):
    n = int(input())
    queue.append(list(map(int, input().split())))

def findLengthOfLCIS(nums):
    maxl, i = 0, 1
    l = len(nums)
    cur = 1
    while i < l:
        if nums[i - 1] < nums[i]:
            cur += 1
        else:
            cur = 1
        maxl = max(cur, maxl)
        i += 1
    return maxl if l != 1 else 1


for line in queue:
    print(findLengthOfLCIS(line))



